package hnlg.com.cn.purviewmanage.rolemanage.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import hnlg.com.cn.model.RoleVO;

@Mapper
public interface RoleMapper {
public List<RoleVO> queryList(RoleVO vo)throws Exception;
public boolean addRole(RoleVO vo)throws Exception;
public boolean updateRole(RoleVO vo)throws Exception;
public boolean deleteRole(String roleid)throws Exception;
//针对角色授权模块的方法
public boolean roleaddModule(@Param("roleid") String roleid99,@Param("moduleid") String moduleid[])throws Exception;
/*为了防止授权时，重复授权插入重复的数据，先删除在插入：下面是根据角色id删除角色模块中间表数据*/	
public boolean deleteRoleModule(String roleid)throws Exception;
/*查询出某个角色已经授了权的模块id号：用于角色授权模块中，树形控件的显示：授权了的就自动选中，没授权的不选中 */
public List queryModuleIdList(String roleid)throws Exception;

}
